﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment2.Conditions
{
    class NotCondition:Condition
    {
        private Condition condition;

        public NotCondition(Condition condition)
        {
            this.condition = condition;
        }

        public bool test()
        {
            return !condition.test();
        }
    }
}
